<template>
  <div id="app">
    <component :is="coms[currentindex]"></component>
    <div class="bottom">
      <span @click="currentindex = index">{{item.btn}}</span>
    </div>
  </div>
</template>

<script>
import Bbuan from './components/Bbuan.vue'
import Sshopllist from './components/Sshopllist.vue'
import Dingdan from './components/Dingdan.vue'
import Mine from './components/Mine.vue'
export default {
  name: "App",
  data() {
    return {
      coms: [Bbuan, Sshopllist, Dingdan, Mine],
      currentindex: 0,
      list: [
        { btn: '首页' },
        { btn: '爆爆团' },
        { btn: '订单' },
        { btn: '我的' },
      ]
    }
  }

};
</script>
<style>
* {
  padding: 0;
  margin: 0;
}

#app {
  width: 260px;
  height: 390px;
  box-shadow: 0px 0px 7px;
  margin: 120px auto;
}

.bottom {
  height: 40px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
</style>
